<%--
  Created by IntelliJ IDEA.
  User: abcc
  Date: 2019/9/30
  Time: 15:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <!-- 引入bootstrap框架的样式文件 -->
    <link rel="stylesheet" href="${path}/plugins/bootstrap/css/bootstrap.css" type="text/css">
    <link rel="stylesheet" href="${path}/css/person/focuson.css">
    <link rel="stylesheet" href="${path}/css/person/person.css">

</head>

<body>
<!--导航-->
<%@include file="../sharedper/nav.jsp"%>
<!-- 主体部分 -->
<div class="container" style="margin-top: 61px;width: 1015px">
    <div class="userinfo user">
        <div class="myart">
            <p class="person" id="userinfo_head1">匹配用户</p>
            <p id="userinfo_head2">匹配帖子</p>
        </div>

        <div id="block1">
            <c:if test="${!empty requestScope.quser}">
                <div id="${good.id}">
                    <div style="float: left;">
                        <img src="${requestScope.quser.picfilename}" class="gimg" style="width: 60px;height: 60px;border-radius: 50%;">
                    </div>

                    <div style="margin-left: 72px;margin-top: 12px;">
                        <a href="" class="gimga">&nbsp;&nbsp;名称:${requestScope.quser.uName}</a>
                        <!-- 按钮 -->
                    </div>
                    <div style="margin-left: 72px">
                        <span style="color: #666666;margin-top: -2px">&nbsp;&nbsp;简介:</span>
                        <p class="wt">&nbsp;&nbsp;${requestScope.quser.uStatement}</p>
                    </div>
                    <hr class="hrLine" style="width:100%;" />
                </div>
            </c:if>
            <c:forEach items="${requestScope.seluser}" var="user">
                <div id="${good.id}">
                    <div style="float: left;">
                        <img src="${user.picfilename}" class="gimg" style="width: 60px;height: 60px;border-radius: 50%;">
                    </div>

                    <div style="margin-left: 72px;margin-top: 12px;">
                        <a href="${path}/info/personal/${user.id}" class="gimga">&nbsp;&nbsp;昵称:${user.uName}</a>
                        <!-- 按钮 -->
                    </div>
                    <div style="margin-left: 72px">
                        <span style="color: #666666;margin-top: -2px">&nbsp;&nbsp;简介:</span>
                        <p class="wt">&nbsp;&nbsp;${user.uStatement}</p>
                    </div>
                    <hr class="hrLine" style="width:100%;" />
                </div>
            </c:forEach>
            <c:if test="${empty requestScope.quser && empty requestScope.seluser}">
                <p style="text-align: center;font-size: 20px;color: #999999;">没有匹配的用户</p>
            </c:if>
        </div>


        <div id="block2" style="display:none;">
            <c:if test="${empty requestScope.selpost}">
                <p style="text-align: center;font-size: 20px;color: #999999;">没有匹配的帖子</p>
            </c:if>
            <c:if test="${!empty requestScope.selpost}">
            <c:forEach items="${requestScope.selpost}" var="post">
            <div class="xztleft">
            <a href="${path}/com/comment?postId=${post.postId}" class="xztlefta" style="margin-top: 10px">${post.title}</a>
            <br>
            <br>
            </div>
            <a href="#" class="xztlefta1" style="color: #999;height: 60px;">
            ${post.postContent}</a>

            <p style="margin-top: 4px;line-height: 12px;">
            <span class="glyphicon glyphicon-thumbs-up" style="color: #999;"></span>
            <span style="margin-right: 10px;font-size: 12px;margin-left: 0px;color: #999">${post.pointNum}</span>
            <span class="glyphicon glyphicon-comment" style="color: #999;"></span>
            <span style="margin-right: 10px;font-size: 12px;margin-left: 0px;color: #999">${post.visitNum}</span>
            <span style="float: right;font-size: 13px;color: #999;text-align: right"><fmt:formatDate value="${post.ptime}" pattern="yyyy.MM.dd HH:MM:ss"/></span>
            </p>
            <hr class="hrLine" style="width:100%;" />
            </c:forEach>
            </c:if>
        </div>


    </div>
</div>



<script src="${path}/plugins/jquery/jquery.min.js"></script>
<!--引入bootstrap的js文件-->
<script src="${path}/plugins/bootstrap/js/bootstrap.js"></script>
<script src="${path}/js/person/person.js"></script>
<script type="text/javascript">

</script>
</body>
</html>

